package top.hepingan.java.Aiconfig;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.V;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;


/**
 * @author cxyck
 */
@AiService(
        chatMemoryProvider = "chatMemoryProvider",
        wiringMode = AiServiceWiringMode.EXPLICIT,
        streamingChatModel ="qwenStreamingChatModel",
      tools="userNameTools"
//        contentRetriever="contentRetriever"


)
public interface Auconfigq {
    @SystemMessage(fromResource = "system.txt")
    Flux<  String> chat(
            @MemoryId int memoryId,

                @UserMessage String userMessage);

}
